package com.neudu.glsb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neudu.glsb.pojo.Schedules;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author Lenovo
 * @description 针对表【schedules(员工排班信息)】的数据库操作Mapper
 * @createDate 2025-04-16 22:28:32
 * @Entity com.neudu.glsb.pojo.Schedules
 */
public interface SchedulesMapper extends BaseMapper<Schedules> {

    // 自定义方法，用于分页查询排班信息并关联员工姓名
    Page<Schedules> selectSchedulesWithEmployeeName(Page<Schedules> page, @Param("params") Map<String, Object> params);

    // 根据排班 ID 查询排班信息并关联员工姓名
    Schedules selectScheduleByIdWithEmployeeName(@Param("id") Integer id);
}